import request from "@/manager/base/RequestManager";


/**
 * FileName: SystemAuthDeptController.java
 * Author:   徐寿春
 * Date:     2023/2/16 10:43
 * <p>
 * 名称: 系统部门岗位控制层
 */
export function getDepartmentList(params?: any) {
    return request.post('/system/dept/getDepartmentList', params)
}

// 部门详情
export function getDeptDetail(params?: any) {
    return request.post('/system/dept/getDeptDetail', params)
}


// 添加部门
export function deptAdd(params: any) {
    return request.post('/system/dept/addDept', params)
}

// 编辑部门
export function deptEdit(params: any) {
    return request.post('/system/dept/editDept', params)
}

// 删除部门
export function deptDelete(params: any) {
    return request.post('/system/dept/delDept', params)
}

// 上级部门列表
export function leaderDept() {
    return request.get('dept.dept/leaderDept')
}
